.class Lcom/esfile/screen/recorder/picture/PictureListFragment$g;
.super Landroid/content/BroadcastReceiver;
.source "PictureListFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/picture/PictureListFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/picture/PictureListFragment;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/picture/PictureListFragment;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$g;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 2

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$g;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->isAdded()Z

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object p1

    const-string v0, "com.esfile.screen.recorder.action.CLEAR_BTN_STATE"

    .line 3
    invoke-static {p1, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$g;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/PictureListFragment;->a(Lcom/esfile/screen/recorder/picture/PictureListFragment;)V

    goto :goto_0

    :cond_1
    const-string v0, "com.esfile.screen.recorder.action.ADD_NEW_IMAGE"

    .line 5
    invoke-static {p1, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    const-string v1, "key_image_path"

    if-eqz v0, :cond_2

    .line 6
    invoke-virtual {p2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 7
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p2

    if-nez p2, :cond_4

    .line 8
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$g;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-static {p2, p1}, Lcom/esfile/screen/recorder/picture/PictureListFragment;->c(Lcom/esfile/screen/recorder/picture/PictureListFragment;Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    const-string v0, "com.esfile.screen.recorder.action.REMOVE_IMAGE"

    .line 9
    invoke-static {p1, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 10
    invoke-virtual {p2, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 11
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$g;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-static {p2, p1}, Lcom/esfile/screen/recorder/picture/PictureListFragment;->d(Lcom/esfile/screen/recorder/picture/PictureListFragment;Ljava/lang/String;)V

    goto :goto_0

    :cond_3
    const-string p2, "action_storage_permission_granted"

    .line 12
    invoke-static {p1, p2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 13
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureListFragment$g;->a:Lcom/esfile/screen/recorder/picture/PictureListFragment;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/PictureListFragment;->q(Lcom/esfile/screen/recorder/picture/PictureListFragment;)V

    :cond_4
    :goto_0
    return-void
.end method
